package com.zyong.design.pattern.adapter.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: ObjectAdapter
 * @author: zyong
 * @create: 2024-05-08 23:04
 */
public class ObjectAdapter implements Target {
    private Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        System.out.println("对象适配器");
        adaptee.specificRequest();
    }
}
